home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / Interfaces&Libraries / Universal / Interfaces / RIncludes / Finder.r < prev    next >
Encoding:
Text File  |  1998-08-17  |  4.5 KB  |  142 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        Finder.r
  3.  
  4.      Contains:    Finder flags and container types.
  5.  
  6.      Version:    Technology:    Mac OS 8.1
  7.                  Release:    Universal Interfaces 3.2
  8.  
  9.      Copyright:    © 1990-1998 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. */
  17.  
  18. #ifndef __FINDER_R__
  19. #define __FINDER_R__
  20.  
  21. #ifndef __CONDITIONALMACROS_R__
  22. #include "ConditionalMacros.r"
  23. #endif
  24.  
  25. #define kCustomIconResource             (-16455)            /*  Custom icon family resource ID  */
  26. #define kCustomBadgeResourceType         'badg'
  27. #define kCustomBadgeResourceID             (-16455)
  28. #define kCustomBadgeResourceVersion     0
  29.  
  30.  
  31. /*----------------------------badg • Custom badge---------------------------------------*/
  32. type 'badg' {
  33.     integer = 0;            /* version */
  34.     integer;                /* customBadgeResourceID */
  35.     literal longint;        /* customBadgeType */
  36.     literal longint;        /* customBadgeCreator */
  37.     literal longint;        /* windowBadgeType */
  38.     literal longint;        /* windowBadgeCreator */
  39.     literal longint;        /* overrideType */
  40.     literal longint;        /* overrideCreator */
  41. };
  42.  
  43. #define kRoutingResourceType             'rout'
  44. #define kRoutingResourceID                 0
  45.  
  46.  
  47. /*----------------------------rout • Folder routing-------------------------------------*/
  48. type 'rout' {
  49.     array {
  50.         literal longint;        /* creator */
  51.         literal longint;        /* fileType */
  52.         literal longint;        /* targetFolder */
  53.         literal longint;        /* destinationFolder */
  54.         longint = 0;            /* Reserved (set to 0) */
  55.     };
  56. };
  57.  
  58. #define kContainerFolderAliasType         'fdrp'                /*  type for folder aliases  */
  59. #define kContainerTrashAliasType         'trsh'                /*  type for trash folder aliases  */
  60. #define kContainerHardDiskAliasType     'hdsk'                /*  type for hard disk aliases  */
  61. #define kContainerFloppyAliasType         'flpy'                /*  type for floppy aliases  */
  62. #define kContainerServerAliasType         'srvr'                /*  type for server aliases  */
  63. #define kApplicationAliasType             'adrp'                /*  type for application aliases  */
  64. #define kContainerAliasType             'drop'                /*  type for all other containers  */
  65. #define kDesktopPrinterAliasType         'dtpa'                /*  type for Desktop Printer alias  */
  66. #define kContainerCDROMAliasType         'cddr'                /*  type for CD-ROM alias  */
  67.  
  68. #define kSystemFolderAliasType             'fasy'
  69. #define kAppleMenuFolderAliasType         'faam'
  70. #define kStartupFolderAliasType         'fast'
  71. #define kPrintMonitorDocsFolderAliasType  'fapn'
  72. #define kPreferencesFolderAliasType     'fapf'
  73. #define kControlPanelFolderAliasType     'fact'
  74. #define kExtensionFolderAliasType         'faex'
  75.  
  76. #define kExportedFolderAliasType         'faet'
  77. #define kDropFolderAliasType             'fadr'
  78. #define kSharedFolderAliasType             'fash'
  79. #define kMountedFolderAliasType         'famn'
  80.  
  81.  
  82. /*----------------------------BNDL • Bundle---------------------------------------------*/
  83. type 'BNDL' {
  84.         literal longint;                                        /* Signature            */
  85.         integer;                                                /* Version ID            */
  86.         integer = $$CountOf(TypeArray) - 1;
  87.         array TypeArray {
  88.                 literal longint;                                /* Type                 */
  89.                 integer = $$CountOf(IDArray) - 1;
  90.                 wide array IDArray {
  91.                         integer;                                /* Local ID             */
  92.                         integer;                                /* Actual ID            */
  93.                 };
  94.         };
  95. };
  96.  
  97. /*----------------------------open • FileTypes an app can open--------------------------*/
  98. type 'open' {
  99.         literal longint;                                        /* app signature        */
  100.         integer = 0;
  101.         integer = $$CountOf(typeArray);                             /* Array size            */
  102.         wide array typeArray {                                    /* FileTypes that app can open */
  103.                 literal longint;                                /* FileType                */
  104.         };
  105. };
  106.  
  107. /*----------------------------FREF • File Reference-------------------------------------*/
  108. type 'FREF' {
  109.         literal longint;                                        /* File Type            */
  110.         integer;                                                /* Icon ID                */
  111.         pstring;                                                /* Filename             */
  112. };
  113.  
  114. /*----------------------------kind • Custom kind strings --------------------------------*/
  115. type 'kind' {
  116.         literal longint;                                        /* app signature         */
  117.         integer;                                                /* region code of kind string localizations */
  118.         integer = 0;
  119.         integer = $$CountOf(kindArray);                             /* Array size            */
  120.         wide array kindArray {
  121.                 literal longint;                                /* File Type            */
  122.                 pstring;                                        /* custom kind strings    */
  123.                 align    word;
  124.         };
  125. };
  126. /*----------------------------mach • cdev filtering-------------------------------------*/
  127. type 'mach' {
  128.         unsigned hex integer;                                                /* Softmask    */
  129.         unsigned hex integer;                                                /* Hardmask    */
  130. };
  131. /*----------------------------nrct • Rectangle List-------------------------------------*/
  132. type 'nrct' {
  133.         integer = $$CountOf(RectArray);                            /* Number of rectangles    */
  134.         array RectArray {
  135.             rect;
  136.         };
  137. };
  138.  
  139.  
  140. #endif /* __FINDER_R__ */
  141.  
  142.